param( [string] $RootDir=$(Throw "Parameter RootDir is required") )

begin
{
	[System.io.DirectoryInfo] $RootDirItem = Get-Item $RootDir
	$Files = @()	
}

process
{
	if ($_ -is [system.io.fileinfo])
	{
		$Files += $_ | Set-Manifest $RootDir
	}
}

end
{
	$Files | Set-SimpleXml Files File Checksum,RelativePath | Get-FormatXML
}
